import request from '@/utils/request'

export function listECOS(query) {
  return request({
    url: '/ECOS/ECOS/list',
    method: 'get',
    params: query
  })
}
// 查询详细
export function getid(id) {
  return request({
    url: '/ECOS/ECOS/' + id,
    method: 'get'
  })
}
export function insertecos(data){
  return request({
    url:'/ECOS/ECOS',
    method:'post',
    data: data
  })
}
export function updateecos(data){
  return request({
    url:'/ECOS/ECOS',
    method:'put',
    data: data
  })
}
export function deleteecos(id){
  return request({
    url:'/ECOS/ECOS/' + id,
    method:'delete',
  })
}
